<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<%@ include file="../common/taglibs.jsp"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="${rootPath}/css/a.css" type="text/css" rel="stylesheet" />
<link href="${rootPath}/css/index.css" type="text/css" rel="stylesheet" />
<link href="${rootPath}/css/common.css" type="text/css" rel="stylesheet" />
<title>云商宝终端SN查询</title>

<script type="text/javascript"
	src="<s:url value="/js/jquery-1.3.2.js" />"></script>
<script type="text/javascript" src="<s:url value="/js/common.js" />"></script>
<script language="javascript" type="text/javascript"
	src="<s:url value="/js/My97DatePicker/WdatePicker.js"/>"></script>
<script type='text/javascript' src='<s:url value="/dwr/engine.js"/>'></script>
<script type='text/javascript' src='<s:url value="/dwr/interface/MccQuery.js"/>'></script>
<script type="text/javascript">
$(document).ready(function(){

      $("#sub").click(function(){
         $("#importForm").attr("action","<%=basePath%>/ysbTermSnStatis/queryTermSnStatis.ct");
		 $("#importForm").submit();
       
      });
      <%-- 
      $("#szPower").click(function() {
		 $("#importForm").attr("action","<%=basePath%>/ysbTermSnStatis/excelTermSn.ct");
		 $("#importForm").submit();
	   });				
       --%>
   });
   
	
</script>
</head>
<body>
<table class="tb">
    <tbody>
		<s:form id="importForm" action="queryTermSnStatis.ct" method="post"
			namespace="/ysbTermSnStatis"  theme="simple">
			
		        <tr class="tb-line">
		            <td class="tb-td" colspan="6"><div class="tb-h2">POS收单运营管理平台</div></td>
		        </tr>
		
		        <tr class="tb-line">
		            <td class="tb-td" colspan="6"><div class="tb-h3">云商宝终端统计</div></td>
		        </tr>

				<tr class="tb-line">
					<td width="12%" style="min-width: 150px" align="right" class="tb-td">
		                <div class="tb-h4">资产类型：</div>
		             </td>
					<td class="tb-td">
                		<label class="tb-select">
							<s:select cssClass="queryWidth" name="searchCondition.assefFlag"
								id="assefFlag"
								list="#request.assefMap" listKey="key" listValue="value"  headerKey="-1" headerValue="--请选择--"/>
						</label>
					</td>
				</tr>
				
				<tr>
					<td colspan="6">&nbsp;</td>
				</tr>
				<tr>
					<td colspan="6" align="center"><div style="color: blue;">
							<s:actionmessage />
						</div>
						<div style="color: red;">
							<s:actionerror />
						</div>
					</td>
				</tr>

				<tr class="tb-line">
					<td class="tb-td line-submit" align="right" colspan="6">
                		<label class="tb-input-submit">
					 		<s:submit value="查询" id="sub" /> 
		                </label>
		                <label class="tb-input-submit">
				             <s:reset value="取  消" />
		                </label><%-- 
						   <s:if test="#request.searchRsList != null && #request.searchRsList.size>0">
								
				                <label class="tb-input-submit">
									<input id="szPower" type="submit" value="导出Excel" />
				                </label>
					       </s:if>
						   <s:else>
						   
			                <label class="tb-input-submit">
								<input id="szPower" disabled="disabled" value="导出Excel" type="submit" />
			                </label>
					       </s:else> --%>
					</td>
				</tr>
			<table width="100%" cellpadding="0" cellspacing="0" border="0">
				<s:if  test="#request.searchRsList != null && #request.searchRsList.size>0">
					<tr class="tb-line">
						<td class="tb-td paging" colspan="12" align="left">&nbsp;&nbsp;&nbsp;&nbsp; <page:pageCount
								max_pages="11" totalPage="${requestScope.totalPage}"
								currentPage="${requestScope.currentPage}"
								action="${rootPath}/ysbTermSnStatis/queryTermSnStatis.ct?currentPage=" />

						</td>
					</tr>
					</s:if>
			</table> 
		</s:form>
    </tbody>
</table>
<div class="big-tb">
    <table class="tb" style="width: 100%;">
				<thead>
		            <tr class="tb-line">
		                <th class="tb-th" colspan="3">终端统计信息列表</th>
		            </tr>
					<tr class="tb-line bg-gray">
					    <th class="tb-th">资产类型</th>
						<th class="tb-th">总数量</th>
						<th class="tb-th">绑定数量</th>
					</tr>
				</thead>
				<tbody>
					<s:iterator value="#request.searchRsList" status="stat" id="term">
						<tr class="tb-line">
							<td class="tb-td" align="center">
							 <s:property value="#term.assetFlag"/>
							</td>
							<td class="tb-td" align="center">
							 <s:property value="#term.allSum"/>
							</td>
							<td class="tb-td" align="center">
							 <s:property value="#term.brandSum"/>
							</td>
						</tr>
						</s:iterator>
				</tbody>
    </table>
</div>
</body>
</html>